#include <stdio.h>

int main(void)
{
	int m, n;
	int s;

	m = 1, n = 2;

	// m++ m = m + 1;
	// 从左到右依次执行每一个表达式，最后一个表达式是结果
	s = (m++, n++, m + n);
	printf("m:%d, n:%d, s:%d\n", m, n, s);
	// m == 2, n == 3, s == 5
	// ++运算符分为后置和前置 s = m++; 相当于s = m; m++; 如果s = ++m; 相当于++m, s = m;
	s = (m + n, n++, m++); //m + n; n ++; s = m++;
	// m:3 n:4 s:2
	printf("m:%d, n:%d, s:%d\n", m, n, s);

	return 0;
}

